package cn.edu.scau.cmi.wujiaxian.exercise6;

public class Bank {
	
	int savedMoney;
	int year;
	double interest;
	public double computerInterest() {
		interest  = year * 0.035 * savedMoney;
		System.out.printf("%d 元存在银行%d年的利息：%f元\n", savedMoney, year, interest);
		return interest;
	}
	
}
